package com.bm.api.service;

import com.bm.common.dto.UserLoginDto;
import com.bm.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="bm-Server")
public interface UserService {
    @GetMapping("/server/user/check.do")
    R check(@RequestParam String phone);
    @PostMapping("/server/user/logincode.do")
     R loginCode(@RequestBody UserLoginDto dto);
    @GetMapping ("/server/user/loginOut.do")
     R loginOut(@RequestParam int uid);
    @GetMapping("/server/user/oauth.do")
     R oauth(@RequestParam String phone);
       
    
}
